package com.example.zzm.yuejian03.Model;

import com.example.zzm.yuejian03.Bean.RegistBean;
import com.example.zzm.yuejian03.Iface.RegistIface;
import com.example.zzm.yuejian03.Listener.TListener;
import com.example.zzm.yuejian03.Service.Service;

import retrofit2.Call;
import retrofit2.Retrofit;

public class RegistModel extends RetrofitBaseModel implements RegistIface<RegistBean> {
    Retrofit retrofit;
    Service service;

    public RegistModel(){
        retrofit = getRetrofit();
        service = getService();
    }


    @Override
    public void getRegistMassage(String name, String password, String real_name, String nickname, String comment, TListener tListener) {
        Call<RegistBean> call=service.getRegist(name,password,real_name,nickname,comment);
        callenqueue(call,tListener);
    }
}



